Skip to content

Conversation

@mohansinghi
Copy link

Fixes #3931

Adds runtime import of LayoutElements inside get_layout_elements_from_image() method to resolve NameError when the method is called. The import was previously only available under TYPE_CHECKING, but the class is instantiated at runtime.


Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=158349177

@mohansinghi mohansinghi force-pushed the fix/paddle-ocr-layoutelements-import branch from a72c974 to 098023d Compare January 15, 2026 16:19
@mohansinghi
Copy link
Author

@badGarnet Could you please check my first pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug/NameError: name 'LayoutElements' is not defined

1 participant